#include "StdAfx.h"
#include "Material.h"
#include "MaterialInstance.h"
#include "MaterialManager.h"

#include "Shader.h"

using namespace RenderSystem;

Material::Material( const String& strMaterialID, MaterialManager& rMatMgr )
	:Resource( strMaterialID, rMatMgr )
{
}

Material::~Material(void)
{
}

Instance* Material::_CreateInstanceImpl( const String& strInstanceId )
{
	return new MaterialInstance(strInstanceId,this);
}

bool Material::Load( const String& strPath )
{
	//load material by path
	
	//compile shader
	m_pShader = new Shader;

	MaterialManager& rMaterialManager = static_cast< MaterialManager& >( m_rResMgr );
	

}

bool Material::Unload( void )
{
}
